/**
 * @tag models, home
 * Wraps backend page_metadata services.  Enables 
 * [PageMetadata.static.findAll retrieving],
 * [PageMetadata.static.update updating],
 * [PageMetadata.static.destroy destroying], and
 * [PageMetadata.static.create creating] page_metadatas.
 */
$.Model.extend('Bugstat.Models.PageMetadata',
/* @Static */
{
    /**
     * Retrieves page metadata data from your backend services.
	 *
     * @param {Object}   params   Params that might refine your results.
    * @param {Function} success  A callback function that returns wrapped page_metadata objects.
    * @param {Function} error   A callback function for an error in the ajax request.
     */
    findAll : function(params, success, error){
        $.ajax({
            url: 'reports/page_metadata.get',
            type: 'get',
            dataType: 'json',
            data: params,
            success: this.callback( ['wrap',success] ),
			error: error
        })
    }
},
/* @Prototype */
{
	
})